package com.atde._04_structural_design_patterns.facade;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.facade
 * @Author: Del
 * @CreateTime: 2025-06-23  09:20
 * @Description: 外观模式 --- 投影仪类
 * @Version: 1.0
 */
public class Projector {

    // 饿汉式单例
    private static final Projector instance = new Projector();

    private Projector() {}

    public static Projector getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("投影仪打开......");
    }

    public void off() {
        System.out.println("投影仪关闭......");
    }

    public void focus() {
        System.out.println("投影仪对焦......");
    }
}
